<?php $this->_extends('_layouts/bootstrap_layout'); ?>
<?php $this->_block('contents'); ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/jq.js?"></script>
<script type="text/javascript" src="<?=Q::ini('custom_system/base_url')?>js/jq.ui.js"></script>
<link type="text/css" href="<?=Q::ini('custom_system/base_url')?>css/jq.ui.css" rel="stylesheet" />
<script type="text/javascript">
$(function(){
	$("#import_btn").click(function(){
		if($("#file").val() == "")
		{
			alert("请选择文件");
			return false;	
		}
		if($("#warehouse_id").val() == "")
		{
			alert("请选择仓库");
			return false;	
		}

	});
});
</script>
<form action="<?=url('Default::Public/FBADataImportSave')?>" method="post" enctype="multipart/form-data">
	<div class="container">
		<fieldset>
		<legend>导入FBA资料</legend>
					<p><input type="file" name="data" id="file"/></p>
					<select name="warehouse_id" id="warehouse_id">
						<option value="">请选择仓库</option>
						<?foreach ($warehouse as $w):?>
						<option value="<?=$w['id']?>"><?=$w['name']?></option>
						<?endforeach;?>
					</select>
					<p><input type="submit" class="button" value="确定导入" id="import_btn"/></p>
		</fieldset>
	</div>
</form>
<?php $this->_endblock();?>